Source File
shortiterator.go
Belonging Package
github.com/RoaringBitmap/roaring
package roaringtype shortIterable interface {hasNext() boolnext() uint16}type shortPeekable interface {shortIterablepeekNext() uint16advanceIfNeeded(minval uint16)}type shortIterator struct {slice []uint16loc int}func ( *shortIterator) () bool {return .loc < len(.slice)}func ( *shortIterator) () uint16 {:= .slice[.loc].loc++return}func ( *shortIterator) () uint16 {return .slice[.loc]}func ( *shortIterator) ( uint16) {if .hasNext() && .peekNext() < {.loc = advanceUntil(.slice, .loc, len(.slice), )}}type reverseIterator struct {slice []uint16loc int}func ( *reverseIterator) () bool {return .loc >= 0}func ( *reverseIterator) () uint16 {:= .slice[.loc].loc--return}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |